Traducción al español será siempre la mayor brevedad

outputResource


The Resource Download Component (outputResource) provides a means for users to download specific resources, such as Files and Streams from an ICEfaces page. The component also allows the developer control over several aspects of resource provisioning, such as dynamically controlling the file name, whether the resource is sourced from a cache or not, and whether it is downloaded as a browser attachment. The developer can also control certain display characteristics of the component, such as whether it appears as a link, a button, or as an image.

Common attributes are specified in the component tag itself. They include:

The following code shows basic usage of the component:

    <ice:outputResource id="imgRsource"
			resource="#{resourceBean.imgResource}" label="Click to load image"
			fileName="icefaces.jpg" mimeType="image/jpeg" attachment="false" />

All of the attribute values in the example can be replaced with EL expressions.

Tag Summary

tag-name:
<ice:outputResource>
tag-class:
com.icesoft.faces.component.outputresource.OutputResourceTag
component-class:
com.icesoft.faces.component.outputresource.OutputResource
component-type:
com.icesoft.faces.OutputResource
component-family:
com.icesoft.faces.OutputResource
renderer-class:
com.icesoft.faces.component.outputresource.OutputResourceRenderer
renderer-type:
com.icesoft.faces.OutputResource